<html>
<head></head>
<body>
	<script>
		function callLogin(){
	 		var xmlhttp = new XMLHttpRequest();   // new HttpRequest instance 
			xmlhttp.open("POST", "http://localhost:8051/rapla/auth", true);
			xmlhttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
			xmlhttp.send(JSON.stringify({"username":"admin", "password":""}));
		}
	</script>
	<button type="button" onclick="callLogin();">Abschicken</button>
</body>
</html>